package com.sg.controller.bff;

import com.sg.service.biz.bff.DashboardAchievementService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "DashboardAchievement", tags = {"DashboardAchievement"})
@RestController
// @RequestMapping("/oms/dashboardAchievement/")
public class DashboardAchievementController {

    @Autowired
    DashboardAchievementService dashboardAchievementService;

    /**
     * B3查询最新成果列表
     * gen by moon at 4/7/2024, 9:24:02 AM
     */
    @PostMapping("/oms/dashboardAchievement/queryNewDockAchievementList")
    @ApiOperation(value = "B3查询最新成果列表", response = OkrResult.class)
    public OkrResult<BffQueryNewDockAchievementListRespDto> queryNewDockAchievementList(@RequestBody(required = false) @Validated BffQueryNewDockAchievementListReqDto reqDTO) {
        return OkrResult.success(dashboardAchievementService.queryNewDockAchievementList(reqDTO));
    }

    /**
     * B3查询标志性成果明细列表
     * gen by moon at 7/3/2024, 9:00:59 PM
     */
    @PostMapping("/oms/dashboardAchievement/queryIconicAchievementsDetailsList")
    @ApiOperation(value = "B3查询标志性成果明细列表", response = OkrResult.class)
    public OkrResult<BffQueryIconicAchievementsDetailsListRespDto> queryIconicAchievementsDetailsList(@RequestBody(required = false) @Validated BffQueryIconicAchievementsDetailsListReqDto reqDTO) {
        return OkrResult.success(dashboardAchievementService.queryIconicAchievementsDetailsList(reqDTO));
    }
}
